//strcpy()
//#include<stdio.h>
//#include<string.h>
//int main()
//{
//	int i=0,resu;
//	char s1[80],s2[40];
//	printf("input s1:\n");
//	gets(s1);
//	printf("input s2:\n");
//	gets(s2);
//	printf("\nnew string is %s\n",strcpy(s1,s2));
//
//	return 0;
//		
//}

#include<stdio.h>
#include<string.h>
int main()
{
	void cpy(char s1[],char s2[]);
	int i=0,j=0;
	char s1[80],s2[40];
	printf("input s2:\n");
	gets(s2);
	cpy(s1,s2);
	printf("new s1 is %s\n",s1);
	return 0;
		
}
void cpy(char s1[],char s2[])
{
	int i,j;
	while(s2[j]!='\0')
		s1[i++]=s2[j++];
	s2[i]='\0';
	printf("new s1 is %s\n",s1);
}
